package com.rope.backEnd.service.impl;

import com.rope.backEnd.mapper.ChatHistoryMapper;


import com.rope.backEnd.pojo.ChatHistory;
import com.rope.backEnd.service.ChatHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;

@Service
public class ChatHistoryServiceImpl implements ChatHistoryService {
    @Autowired
    private ChatHistoryMapper chatHistoryMapper;

    @Override
    public List<ChatHistory> list() {
        return chatHistoryMapper.list();
    }

    @Override
    public int input(ChatHistory chatHistory) {
        return chatHistoryMapper.input(chatHistory);
    }
}
